<script src="http://shared.ydstatic.com/js/zepto/1.1.6.js"></script>
<script src="http://shared.ydstatic.com/js/ydk/ydk-1.4.0-min.js"></script> 
<script>
    ydk.config({
            debug: false,
            jsApiList: ['checkJsApi', 'share']
        });

sh.fenxiang=function(){
   /// alert('up_datasssssfff');
       ydk.share({
      //  type : "wechat_moments",
        title : share.title,
        desc :share.desc,
        imgUrl :share.img,
        link :share.url,
        complete:function(res){
            alert('complete');
        },
        success : function(res){
           alert('fenxiang'); 
        },
        cancel:function(res){
            alert('cancel');
        },
        fail:function(res){
            alert('fail');
        }
        });
};
  share.up_data=function(){
      ////  alert('up_datasss');
      ydk.share({
        silence:true,
        //type : "wechat_moments",
        title : share.title,
        desc :share.desc,
        imgUrl :share.img,
        link :share.url,
        success : function(res){
       ///     alert('up_data');
            sys.post_error_msg('有道js发回来的错误:'+JSON.stringify(res)+location.href);
        }
        });

  };

share.up_data();
</script>